home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19971216-19980424
/
000195_news@newsmaster….columbia.edu _Fri Feb 6 23:08:48 1998.msg
< prev
next >
Wrap
Internet Message Format
|
1998-04-22
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id XAA08941
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 6 Feb 1998 23:08:48 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id XAA16848
for kermit.misc@watsun; Fri, 6 Feb 1998 23:08:47 -0500 (EST)
Path: news.columbia.edu!sol.ctr.columbia.edu!spool.mu.edu!uwm.edu!vixen.cso.uiuc.edu!howland.erols.net!news-peer.sprintlink.net!news-backup-west.sprintlink.net!news-in-west.sprintlink.net!news.sprintlink.net!Sprint!209.90.0.8!alpha.sky.net!newshub.cts.com!newshub.nosc.mil!dog.ee.lbl.gov!news.cs.utah.edu!cc.usu.edu!jrd
From: jrd@cc.usu.edu (Joe Doupnik)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Divide Overflow with 3.12
Message-ID: <Dk53LJmOV3j1@cc.usu.edu>
Date: 3 Feb 98 11:55:27 MDT
References: <34D40FDC.64AB@uc.edu> <6b6jij$8g$1@trog.dra.hmg.gb>
Organization: Utah State University
Lines: 60
Xref: news.columbia.edu comp.protocols.kermit.misc:8378
In article <6b6jij$8g$1@trog.dra.hmg.gb>, "Doug Pickering" <djpickering@dera.gov.uk> writes:
> Charles,
>
> I had the same problem last year.
>
> The problem I had was caused by a loop to detect how fast the processor is
> running. This loop did not correctly handle that the timing loop may
> complete so quickly. This produced a divide overflow.
>
> If like me you need to use 3.12 because of the product macro then I suggest
> the following:
Might I ask what specifically requires using MSK 3.12 rather than
later versions?
> 1) Get hold of the Kermit 3.12 source
> 2) Get hold of the latest source (I used 3.14)
> 3) Build the 3.12 version.
> 4) Run the 3.12 version with codeview and let it crash
> 5) Determine where it has crashed and replace the relevent code with the
> code from the latest version of Kermit.
Pcwait material in file msxibm.asm, revise like this:
; new pcwcnt= old pcwcnt * [1193(tics/ms) / (observed tics / loops)]
mov cx,8*1193
mul cx
or bx,bx ; zero observed tics?
jz pcwtst3 ; z = yes, divide by one
cmp dx,bx ; overflow?
jb pcwtst4 ; b = not likely
mov ax,pcwcnt
jmp short pcwtst3 ; bypass calculation
pcwtst4:div bx ; divided by observed tics
pcwtst3:mov pcwcnt,ax ; store quotient as new inner loop counter
> 6) rebuild
> And there you have it.
Not quite. Patches will be invalidated by the change.
Joe D.
> Unfortunately I do not have the environment set up to do this for you any
> more and the version I have has been customised slightly for our needs. You
> are welcome to try our version, please send me an email if you wish to.
>
> Doug Pickering
> Comax
>
>
> Charles Hart Enzer, M.D. wrote in message <34D40FDC.64AB@uc.edu>...
>>When I install and run this version of kermit in a pc-computer whose
>>cpu is MMX I get the message:
>>
>> DIVIDE OVERFLOW .
>>| Charles Hart Enzer, M.D. Email: Charles.Enzer@uc.EDU
>>+
>
>